import {login, getInfo, getRouters} from "@/api/login";
import {setToken} from "@/utils/auth";
// 用户信息模块(局部模块)
export default {
  namespaced: true, // 开启命名空间
  state() {
    return {
      token: "",
      userInit: {},
      name: "",
      roles: [],
      permissions: [],
      sidebarRouters: [],
    }
  },
  mutations: {
    SET_USER_INFO(state, userInfo) {
      state.userInfo = userInfo
    },
    SET_ROLES(state, roles) {
      state.roles = roles
    },
    SET_PERMISSIONS(state, permissions) {
      state.permissions = permissions
    },
    SET_NAME(state, name) {
      state.name = name
    },
    SET_SIDEBAR_ROUTERS: (state, routes) => {
      state.sidebarRouters = routes
    },

  },
  actions: {
    userLogin(context, userInfo) {
      console.log("context", context)
      console.log("userInfo", userInfo)
      return new Promise((resolve, reject) => {
        login(userInfo).then(res => {
          setToken(res.token)
          resolve();
        }).catch(err => {
          reject();
        })
      })
    },
    GetInfo(context) {
      return new Promise((resolve, reject) => {
        getInfo().then(res => {
          const userInfo = res.user
          if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组
            context.commit('SET_ROLES', res.roles)
            context.commit('SET_PERMISSIONS', res.permissions)
          } else {
            context.commit('SET_ROLES', ['ROLE_DEFAULT'])
          }
          context.commit("SET_USER_INFO", userInfo)
          context.commit("SET_NAME", userInfo.userName)
          resolve(res)
        }).catch(() => {
          reject();
        })
      })
    },
    GenerateRoutes(context) {
      return new Promise((resolve, reject) => {
        let getRouters = [
          {
            "name": "Backlog",
            "menuId": "1217",
            "path": "/backlog",
            "hidden": false,
            "redirect": "noRedirect",
            "component": "Layout",
            "alwaysShow": true,
            "meta": {"title": "待办件", "icon": "logininfor", "noCache": false, "link": null},
            "children": [{
              "name": "BacklogList",
              "menuId": "1218",
              "path": "backlog/index",
              "hidden": false,
              "component": "backlog/backlog",
              "meta": {"title": "待办件", "icon": "#", "noCache": false, "link": null}
            }]
          },
          {
            "name": "BasicData",
            "menuId": "1065",
            "path": "/basicData",
            "hidden": false,
            "redirect": "noRedirect",
            "component": "Layout",
            "alwaysShow": true,
            "meta": {"title": "基础资料", "icon": "base_info", "noCache": false, "link": null},
            "children": [
              {
                "name": "Product",
                "menuId": "1066",
                "path": "product",
                "hidden": false,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "商品", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "Brand",
                  "menuId": "1067",
                  "path": "brand",
                  "hidden": false,
                  "component": "brand/brand",
                  "meta": {"title": "商品品牌", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "Product",
                  "menuId": "1068",
                  "path": "product",
                  "hidden": false,
                  "component": "brand/product",
                  "meta": {"title": "商品信息", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "ProductLine",
                  "menuId": "1153",
                  "path": "productLine",
                  "hidden": false,
                  "component": "brand/productLine",
                  "meta": {"title": "产品线", "icon": "#", "noCache": false, "link": null}
                }]
              },
            ]
          },
          {
            "name": "Purchase",
            "menuId": "1084",
            "path": "/purchase",
            "hidden": false,
            "redirect": "noRedirect",
            "component": "Layout",
            "alwaysShow": true,
            "meta": {"title": "伙伴管理", "icon": "icon_partner", "noCache": false, "link": null},
            "children": [
              {
                "name": "Customer",
                "menuId": "1086",
                "path": "customer",
                "hidden": false,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "客户", "icon": "#", "noCache": false, "link": null},
                "children": [
                  {
                    "name": "Customer",
                    "menuId": "1088",
                    "path": "customer",
                    "hidden": false,
                    "component": "companion/customer/customer",
                    "meta": {"title": "潜在客户", "icon": "#", "noCache": false, "link": null}
                  },
                  {
                    "name": "CustomerDemo",
                    "menuId": "1376",
                    "path": "customerAdd",
                    "hidden": true,
                    "component": "companion/customer/customerDetails",
                    "query": "{'type': 'add'}",
                    "meta": {"title": "客户新增", "icon": "#", "noCache": false, "link": null}
                  },
                ]
              }, {
                "name": "Supplier",
                "menuId": "1087",
                "path": "supplier",
                "hidden": false,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "供应商", "icon": "#", "noCache": false, "link": null},
                "children": [
                  {
                    "name": "Supplier",
                    "menuId": "1090",
                    "path": "supplier",
                    "hidden": false,
                    "component": "companion/supplier/supplier",
                    "meta": {"title": "潜在供应商", "icon": "#", "noCache": false, "link": null}
                  },
                  {
                    "name": "SupplierAdd",
                    "menuId": "1093",
                    "path": "supplierAdd",
                    "hidden": true,
                    "component": "companion/supplier/supplierDetails",
                    "meta": {"title": "供应商新增", "icon": "#", "noCache": false, "link": null}
                  },
                ]
              }]
          },
          /*{
            "name": "SaleMain",
            "menuId": "1061",
            "path": "/saleMain",
            "hidden": false,
            "redirect": "noRedirect",
            "component": "Layout",
            "alwaysShow": true,
            "meta": {"title": "销售管理", "icon": "icon_sale", "noCache": false, "link": null},
            "children": [{
              "name": "CustomerDemand",
              "menuId": "1062",
              "path": "customerDemand",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "客户需求", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "CustomerDemand",
                "menuId": "1063",
                "path": "customerDemand",
                "hidden": false,
                "component": "sale/customerDemand/index",
                "meta": {"title": "客户需求", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "QuickPrice",
                "menuId": "1180",
                "path": "quickPrice",
                "hidden": false,
                "component": "sale/quickPrice/quickPriceIndex",
                "meta": {"title": "快速查价", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "CustomerDemandAdd",
                "menuId": "1085",
                "path": "customerDemandAdd",
                "hidden": true,
                "component": "sale/customerDemand/add",
                "meta": {"title": "客户需求新增", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "CustomerDemandDetails",
                "menuId": "1109",
                "path": "customerDemandDetails",
                "hidden": true,
                "component": "sale/customerDemand/details",
                "meta": {"title": "客户需求详情", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "SaleOrder",
              "menuId": "1064",
              "path": "saleOrder",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "订单管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "OrderDemandAdd",
                "menuId": "1107",
                "path": "orderDemandAdd",
                "hidden": true,
                "component": "sale/order/add",
                "meta": {"title": "销售订单新增", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "OrderDemandDetails",
                "menuId": "1112",
                "path": "orderDemandDetails",
                "hidden": true,
                "component": "sale/order/details",
                "meta": {"title": "销售订单详情", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "List",
              "menuId": "1106",
              "path": "list",
              "hidden": false,
              "component": "sale/order/index",
              "meta": {"title": "销售订单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "SchedulingSales",
              "menuId": "1266",
              "path": "schedulingSales",
              "hidden": false,
              "component": "sale/scheduling/sell/index",
              "meta": {"title": "销售排单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "SalApplicationList",
              "menuId": "1244",
              "path": "salApplicationList",
              "hidden": false,
              "component": "purchase/application/sal/list",
              "meta": {"title": "退货申请单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "Scheduling",
              "menuId": "1281",
              "path": "scheduling",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "销售排单管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "SchedulingSalesAdd",
                "menuId": "1282",
                "path": "schedulingSalesAdd",
                "hidden": true,
                "component": "sale/scheduling/sell/add",
                "meta": {"title": "新增销售计划", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "SchedulingSalesEdit",
                "menuId": "1283",
                "path": "schedulingSalesEdit",
                "hidden": true,
                "component": "sale/scheduling/sell/edit",
                "meta": {"title": "编辑销售计划", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "SchedulingSalesView",
                "menuId": "1284",
                "path": "schedulingSalesView",
                "hidden": true,
                "component": "sale/scheduling/sell/view",
                "meta": {"title": "查看销售计划", "icon": "#", "noCache": true, "link": null}
              }]
            }, {
              "name": "SaleCommissions",
              "menuId": "1299",
              "path": "saleCommissions",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "销售财务管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "SaleComManaglist",
                "menuId": "1285",
                "path": "saleComManaglist",
                "hidden": false,
                "component": "sale/saleComManaglist/index",
                "meta": {"title": "销售佣金汇总", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "CommissionpayList",
                "menuId": "1268",
                "path": "commissionpayList",
                "hidden": false,
                "component": "sale/commissionpay/list",
                "meta": {"title": "销售佣金申请", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "SaleReceivableList",
                "menuId": "1336",
                "path": "saleReceivableList",
                "hidden": false,
                "component": "sale/saleReceivable/saleReceivableList",
                "meta": {"title": "应收款清单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "SaleAuditList",
                "menuId": "1337",
                "path": "saleAuditList",
                "hidden": false,
                "component": "sale/saleAudit/saleAuditList",
                "meta": {"title": "查账申请", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "AuditManage",
                "menuId": "1338",
                "path": "auditManage",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "查账管理", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "SaleAuditAdd",
                  "menuId": "1342",
                  "path": "saleAuditAdd",
                  "hidden": true,
                  "component": "sale/saleAudit/saleAuditAdd",
                  "meta": {"title": "新增查账申请", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "SaleAuditEdit",
                  "menuId": "1348",
                  "path": "saleAuditEdit",
                  "hidden": true,
                  "component": "sale/saleAudit/saleAuditEdit",
                  "meta": {"title": "编辑查账申请", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "SaleAuditView",
                  "menuId": "1349",
                  "path": "saleAuditView",
                  "hidden": true,
                  "component": "sale/saleAudit/saleAuditView",
                  "meta": {"title": "查看查账申请", "icon": "#", "noCache": true, "link": null}
                }]
              }, {
                "name": "RefundApply",
                "menuId": "1343",
                "path": "refundApply",
                "hidden": false,
                "component": "sale/refundApply/refundList",
                "meta": {"title": "退款申请", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "RefundManage",
                "menuId": "1344",
                "path": "refundManage",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "退款申请管理", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "RefundApplyAdd",
                  "menuId": "1345",
                  "path": "refundApplyAdd",
                  "hidden": true,
                  "component": "sale/refundApply/refundAdd",
                  "meta": {"title": "新增退款申请", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "RefundApplyEdit",
                  "menuId": "1346",
                  "path": "refundApplyEdit",
                  "hidden": true,
                  "component": "sale/refundApply/refundEdit",
                  "meta": {"title": "编辑退款申请", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "RefundApplyView",
                  "menuId": "1347",
                  "path": "refundApplyView",
                  "hidden": false,
                  "component": "sale/refundApply/refundView",
                  "meta": {"title": "查看退款申请", "icon": "#", "noCache": false, "link": null}
                }]
              }, {
                "name": "SaleOtherExpenses",
                "menuId": "1379",
                "path": "saleOtherExpenses",
                "hidden": false,
                "component": "sale/saleComManaglist/saleOtherExpenses",
                "meta": {"title": "其他费用汇总", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "Salretrun",
              "menuId": "1246",
              "path": "salretrun",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "销售退货申请", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "SalApplication",
                "menuId": "1241",
                "path": "salApplication",
                "hidden": true,
                "component": "purchase/application/sal/index",
                "meta": {"title": "销售退货申请新增", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "SalApplicationedit",
                "menuId": "1259",
                "path": "salApplicationedit",
                "hidden": true,
                "component": "purchase/application/sal/edit",
                "meta": {"title": "销售退货申请编辑", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "SalApplicationdetails",
                "menuId": "1260",
                "path": "salApplicationdetails",
                "hidden": true,
                "component": "purchase/application/sal/details",
                "meta": {"title": "销售退货申请详情", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "Commission",
              "menuId": "1269",
              "path": "commission",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "佣金申请", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "CommissionpayAdd",
                "menuId": "1270",
                "path": "commissionpayAdd",
                "hidden": false,
                "component": "sale/commissionpay/add",
                "meta": {"title": "销售佣金申请新增", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "CommissionpayEdit",
                "menuId": "1272",
                "path": "commissionpayEdit",
                "hidden": true,
                "component": "sale/commissionpay/edit",
                "meta": {"title": "销售佣金申请编辑", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "CommissionpayDetails",
                "menuId": "1273",
                "path": "commissionpayDetails",
                "hidden": true,
                "component": "sale/commissionpay/details",
                "meta": {"title": "销售佣金申请详情", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "/saleOrder/queryRebateOrder",
              "menuId": "1293",
              "path": "/saleOrder/queryRebateOrder",
              "hidden": true,
              "component": "/saleOrder/queryRebateOrder",
              "meta": {"title": "销售付款申请单-销售订单列表", "icon": "select", "noCache": false, "link": null}
            }]
          },
          {
            "name": "PurchasingManag",
            "menuId": "1098",
            "path": "/purchasingManag",
            "hidden": false,
            "redirect": "noRedirect",
            "component": "Layout",
            "alwaysShow": true,
            "meta": {"title": "采购管理", "icon": "shopping", "noCache": false, "link": null},
            "children": [{
              "name": "QuotationSheetindex",
              "menuId": "1100",
              "path": "quotationSheetindex",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "采购报价", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "SaleDemand",
                "menuId": "1095",
                "path": "saleDemand",
                "hidden": false,
                "component": "purchase/saleDemand/index",
                "meta": {"title": "销售需求", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "SeaDemand",
                "menuId": "1103",
                "path": "seaDemand",
                "hidden": false,
                "component": "purchase/seaDemand/index",
                "meta": {"title": "需求公海", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "FastquotationSheet",
                "menuId": "1102",
                "path": "fastquotationSheet",
                "hidden": false,
                "component": "purchase/fastquotationSheet/fastQuotationSheet",
                "meta": {"title": "快速询价", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "QuotationSheet",
                "menuId": "1096",
                "path": "quotationSheet",
                "hidden": false,
                "component": "purchase/quotationSheet/index",
                "meta": {"title": "报价单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "Collection",
                "menuId": "1168",
                "path": "collection",
                "hidden": false,
                "component": "purchase/collection/index",
                "meta": {"title": "我的收藏", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "AcquisitionParameter",
                "menuId": "1179",
                "path": "acquisitionParameter",
                "hidden": false,
                "component": "purchase/acquisitionParameter/index",
                "meta": {"title": "采销参数设置", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "AcquisitionParameterAdd",
                "menuId": "1181",
                "path": "acquisitionParameterAdd",
                "hidden": true,
                "component": "purchase/acquisitionParameter/add",
                "meta": {"title": "采销参数设置新增", "icon": "#", "noCache": true, "link": null}
              }, {
                "name": "AcquisitionParameterDetails",
                "menuId": "1182",
                "path": "acquisitionParameterDetails",
                "hidden": true,
                "component": "purchase/acquisitionParameter/details",
                "meta": {"title": "采销参数设置详情", "icon": "#", "noCache": true, "link": null}
              }, {
                "name": "QuotationSheetAdd",
                "menuId": "1097",
                "path": "quotationSheetAdd",
                "hidden": true,
                "component": "purchase/quotationSheet/add",
                "meta": {"title": "采购报价单新增", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "QuotationSheetDetails",
                "menuId": "1114",
                "path": "quotationSheetDetails",
                "hidden": true,
                "component": "purchase/quotationSheet/details",
                "meta": {"title": "采购报价单详情", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "ToBePurchased",
              "menuId": "1367",
              "path": "toBePurchased",
              "hidden": false,
              "component": "purchase/toBePurchased/index",
              "meta": {"title": "待采购清单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "PurchaseOrder",
              "menuId": "1205",
              "path": "purchaseOrder",
              "hidden": false,
              "component": "sale/order/purchaseOrder",
              "meta": {"title": "采购订单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "SchedulingPurchase",
              "menuId": "1261",
              "path": "schedulingPurchase",
              "hidden": false,
              "component": "sale/scheduling/purchase/index",
              "meta": {"title": "采购排单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "PurApplicationList",
              "menuId": "1245",
              "path": "purApplicationList",
              "hidden": false,
              "component": "purchase/application/pur/list",
              "meta": {"title": "退货申请单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "Scheduling",
              "menuId": "1262",
              "path": "scheduling",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "采购排单管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "SchedulingPurchaseAdd",
                "menuId": "1263",
                "path": "schedulingPurchaseAdd",
                "hidden": false,
                "component": "sale/scheduling/purchase/add",
                "meta": {"title": "新增采购计划", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "SchedulingPurchaseEdit",
                "menuId": "1279",
                "path": "schedulingPurchaseEdit",
                "hidden": true,
                "component": "sale/scheduling/purchase/edit",
                "meta": {"title": "编辑采购计划", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "SchedulingPurchaseView",
                "menuId": "1280",
                "path": "schedulingPurchaseView",
                "hidden": true,
                "component": "sale/scheduling/purchase/view",
                "meta": {"title": "查看采购计划", "icon": "#", "noCache": true, "link": null}
              }]
            }, {
              "name": "PurCommissions",
              "menuId": "1300",
              "path": "purCommissions",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "采购财务管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "PurchaseComManaglist",
                "menuId": "1286",
                "path": "purchaseComManaglist",
                "hidden": false,
                "component": "purchase/purchaseComManag/index",
                "meta": {"title": "采购佣金汇总", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PurmissionpayList",
                "menuId": "1274",
                "path": "purmissionpayList",
                "hidden": false,
                "component": "purchase/purmissionpay/index",
                "meta": {"title": "采购佣金申请", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PayableList",
                "menuId": "1352",
                "path": "payableList",
                "hidden": false,
                "component": "purchase/finance/payable/payableList",
                "meta": {"title": "应付款清单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PurPaymentApplyList",
                "menuId": "1353",
                "path": "purPaymentApplyList",
                "hidden": false,
                "component": "purchase/finance/paymentApply/paymentApplyList",
                "meta": {"title": "付款申请单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PruPaymentApplyManage",
                "menuId": "1358",
                "path": "pruPaymentApplyManage",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "付款申请管理", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "PurPaymentApplyAdd",
                  "menuId": "1359",
                  "path": "purPaymentApplyAdd",
                  "hidden": true,
                  "component": "purchase/finance/paymentApply/paymentApplyAdd",
                  "meta": {"title": "新增付款申请单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "PurPaymentApplyEdit",
                  "menuId": "1360",
                  "path": "purPaymentApplyEdit",
                  "hidden": true,
                  "component": "purchase/finance/paymentApply/paymentApplyEdit",
                  "meta": {"title": "编辑付款申请单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "PurPaymentApplyView",
                  "menuId": "1361",
                  "path": "purPaymentApplyView",
                  "hidden": true,
                  "component": "purchase/finance/paymentApply/paymentApplyView",
                  "meta": {"title": "查看付款申请单", "icon": "#", "noCache": false, "link": null}
                }]
              }, {
                "name": "PurAuditList",
                "menuId": "1385",
                "path": "purAuditList",
                "hidden": false,
                "component": "purchase/finance/purAudit/purAuditList",
                "meta": {"title": "退款查账申请", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PurAuditManage",
                "menuId": "1386",
                "path": "purAuditManage",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "查账申请管理", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "PurAuditAdd",
                  "menuId": "1387",
                  "path": "purAuditAdd",
                  "hidden": true,
                  "component": "purchase/finance/purAudit/purAuditAdd",
                  "meta": {"title": "新增退款查账申请", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "PurAuditEdit",
                  "menuId": "1388",
                  "path": "purAuditEdit",
                  "hidden": true,
                  "component": "purchase/finance/purAudit/purAuditEdit",
                  "meta": {"title": "编辑退款查账申请", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "PurAuditView",
                  "menuId": "1389",
                  "path": "purAuditView",
                  "hidden": true,
                  "component": "purchase/finance/purAudit/purAuditView",
                  "meta": {"title": "查看退款查账申请", "icon": "#", "noCache": false, "link": null}
                }]
              }, {
                "name": "PurOtherExpenses",
                "menuId": "1380",
                "path": "purOtherExpenses",
                "hidden": false,
                "component": "purchase/finance/payable/purOtherExpenses",
                "meta": {"title": "其他费用汇总", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "PurOrderManage",
              "menuId": "1368",
              "path": "purOrderManage",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "采购订单管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "PurchaseOrderAdd",
                "menuId": "1206",
                "path": "purchaseOrderAdd",
                "hidden": true,
                "component": "sale/order/purchaseOrderAdd",
                "meta": {"title": "新增采购订单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PurchaseOrderEdit",
                "menuId": "1207",
                "path": "purchaseOrderEdit",
                "hidden": true,
                "component": "sale/order/purchaseOrderEdit",
                "meta": {"title": "编辑采购订单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PurchaseOrderDetails",
                "menuId": "1208",
                "path": "purchaseOrderDetails",
                "hidden": true,
                "component": "sale/order/purchaseOrderDetails",
                "meta": {"title": "查看采购订单", "icon": "#", "noCache": true, "link": null}
              }]
            }, {
              "name": "Purretrun",
              "menuId": "1247",
              "path": "purretrun",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "采购退货申请", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "PurApplication",
                "menuId": "1242",
                "path": "purApplication",
                "hidden": true,
                "component": "purchase/application/pur/index",
                "meta": {"title": "采购退货申请新增", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PurApplicationedit",
                "menuId": "1257",
                "path": "purApplicationedit",
                "hidden": true,
                "component": "purchase/application/pur/edit",
                "meta": {"title": "采购退货申请编辑", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PurApplicationdetails",
                "menuId": "1258",
                "path": "purApplicationdetails",
                "hidden": true,
                "component": "purchase/application/pur/details",
                "meta": {"title": "采购退货申请详情", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "Purmissionpay",
              "menuId": "1275",
              "path": "purmissionpay",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "佣金申请", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "PurmissionpayAdd",
                "menuId": "1276",
                "path": "purmissionpayAdd",
                "hidden": true,
                "component": "purchase/purmissionpay/add",
                "meta": {"title": "采购佣金申请新增", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PurmissionpayEdit",
                "menuId": "1277",
                "path": "purmissionpayEdit",
                "hidden": true,
                "component": "purchase/purmissionpay/edit",
                "meta": {"title": "采购佣金申请编辑", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PurmissionpayDetails",
                "menuId": "1278",
                "path": "purmissionpayDetails",
                "hidden": true,
                "component": "purchase/purmissionpay/details",
                "meta": {"title": "采购佣金申请详情", "icon": "#", "noCache": true, "link": null}
              }]
            }]
          },
          {
            "name": "Inventory",
            "menuId": "1099",
            "path": "/inventory",
            "hidden": false,
            "redirect": "noRedirect",
            "component": "Layout",
            "alwaysShow": true,
            "meta": {"title": "库存管理", "icon": "icon_stock", "noCache": false, "link": null},
            "children": [{
              "name": "InventoryCheck",
              "menuId": "1221",
              "path": "InventoryCheck",
              "hidden": false,
              "component": "wms/inventoryCheck/index",
              "meta": {"title": "库存查询", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "Receive",
              "menuId": "1240",
              "path": "receive",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "收发管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "DeliverList",
                "menuId": "1124",
                "path": "deliverList",
                "hidden": false,
                "component": "sale/deliver/deliverList",
                "meta": {"title": "销售发货通知单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "SellList",
                "menuId": "1156",
                "path": "sellList",
                "hidden": false,
                "component": "sale/sellDeliver/sellList",
                "meta": {"title": "销售发货单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "SellBackList",
                "menuId": "1164",
                "path": "sellBackList",
                "hidden": true,
                "component": "sale/sellBack/sellBackList",
                "meta": {"title": "销售退货单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "Deliver",
                "menuId": "1123",
                "path": "deliver",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "销售发货通知", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "DeliverAdd",
                  "menuId": "1126",
                  "path": "deliverAdd",
                  "hidden": true,
                  "component": "sale/deliver/deliverAdd",
                  "meta": {"title": "新增发货通知单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "DeliverDetails",
                  "menuId": "1125",
                  "path": "deliverDetails",
                  "hidden": true,
                  "component": "sale/deliver/deliverDetails",
                  "meta": {"title": "发货通知单详情", "icon": "#", "noCache": true, "link": null}
                }, {
                  "name": "DeliverEdit",
                  "menuId": "1382",
                  "path": "deliverEdit",
                  "hidden": true,
                  "component": "sale/deliver/deliverEdit",
                  "meta": {"title": "编辑发货通知单", "icon": "#", "noCache": false, "link": null}
                }]
              }, {
                "name": "ReceivingList",
                "menuId": "1375",
                "path": "receivingList",
                "hidden": false,
                "component": "sale/receiving/receivingList",
                "meta": {"title": "采购收货通知单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "SellBack",
                "menuId": "1163",
                "path": "sellBack",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "销售退货", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "SellBackAdd",
                  "menuId": "1165",
                  "path": "sellBackAdd",
                  "hidden": true,
                  "component": "sale/sellBack/sellBackAdd",
                  "meta": {"title": "新增销售退货单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "SellBackEdit",
                  "menuId": "1166",
                  "path": "sellBackEdit",
                  "hidden": true,
                  "component": "sale/sellBack/sellBackEdit",
                  "meta": {"title": "编辑销售退货单", "icon": "#", "noCache": true, "link": null}
                }, {
                  "name": "SellBackView",
                  "menuId": "1167",
                  "path": "sellBackView",
                  "hidden": true,
                  "component": "sale/sellBack/sellBackView",
                  "meta": {"title": "查看销售退货单", "icon": "#", "noCache": true, "link": null}
                }]
              }, {
                "name": "QuotationTakeList",
                "menuId": "1198",
                "path": "quotationTakeList",
                "hidden": false,
                "component": "purchase/quotationTake/quotationTakeList",
                "meta": {"title": "采购收货单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "Sell",
                "menuId": "1155",
                "path": "sell",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "销售发货", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "SellAdd",
                  "menuId": "1160",
                  "path": "sellAdd",
                  "hidden": true,
                  "component": "sale/sellDeliver/sellAdd",
                  "meta": {"title": "新增销售发货单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "SellEdit",
                  "menuId": "1161",
                  "path": "sellEdit",
                  "hidden": true,
                  "component": "sale/sellDeliver/sellEdit",
                  "meta": {"title": "编辑销售发货单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "SellView",
                  "menuId": "1162",
                  "path": "sellView",
                  "hidden": true,
                  "component": "sale/sellDeliver/sellView",
                  "meta": {"title": "查看销售发货单", "icon": "#", "noCache": true, "link": null}
                }]
              }, {
                "name": "QuotationBackList",
                "menuId": "1190",
                "path": "quotationBackList",
                "hidden": true,
                "component": "purchase/quotationBack/quotationBackList",
                "meta": {"title": "采购退货单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "QuotationBack",
                "menuId": "1189",
                "path": "quotationBack",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "采购退货", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "QuotationBackAdd",
                  "menuId": "1191",
                  "path": "quotationBackAdd",
                  "hidden": true,
                  "component": "purchase/quotationBack/quotationBackAdd",
                  "meta": {"title": "新增采购退货单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "QuotationBackEdit",
                  "menuId": "1210",
                  "path": "quotationBackEdit",
                  "hidden": true,
                  "component": "purchase/quotationBack/quotationBackEdit",
                  "meta": {"title": "编辑采购退货单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "QuotationBackView",
                  "menuId": "1212",
                  "path": "quotationBackView",
                  "hidden": true,
                  "component": "purchase/quotationBack/quotationBackView",
                  "meta": {"title": "查看采购退货单", "icon": "#", "noCache": true, "link": null}
                }]
              }, {
                "name": "QuotationTake",
                "menuId": "1197",
                "path": "quotationTake",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "采购收货", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "QuotationTakeAdd",
                  "menuId": "1199",
                  "path": "quotationTakeAdd",
                  "hidden": true,
                  "component": "purchase/quotationTake/quotationTakeAdd",
                  "meta": {"title": "新增采购收货单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "QuotationTakeEdit",
                  "menuId": "1216",
                  "path": "quotationTakeEdit",
                  "hidden": true,
                  "component": "purchase/quotationTake/quotationTakeEdit",
                  "meta": {"title": "编辑采购收货单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "QuotationTakeView",
                  "menuId": "1215",
                  "path": "quotationTakeView",
                  "hidden": true,
                  "component": "purchase/quotationTake/quotationTakeView",
                  "meta": {"title": "查看采购收货单", "icon": "#", "noCache": true, "link": null}
                }]
              }, {
                "name": "Receiving",
                "menuId": "1370",
                "path": "receiving",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "收货通知", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "ReceivingAdd",
                  "menuId": "1371",
                  "path": "receivingAdd",
                  "hidden": true,
                  "component": "sale/receiving/receivingAdd",
                  "meta": {"title": "新增收货通知单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "ReceivingEdit",
                  "menuId": "1372",
                  "path": "receivingEdit",
                  "hidden": true,
                  "component": "sale/receiving/receivingEdit",
                  "meta": {"title": "编辑收货通知单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "ReceivingView",
                  "menuId": "1373",
                  "path": "receivingView",
                  "hidden": true,
                  "component": "sale/receiving/receivingView",
                  "meta": {"title": "查看收货通知单", "icon": "#", "noCache": true, "link": null}
                }]
              }, {
                "name": "SalretruntoList",
                "menuId": "1249",
                "path": "salretruntoList",
                "hidden": false,
                "component": "wms/retrunTo/sal/index",
                "meta": {"title": "销售退货入库单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "Salretrunto",
                "menuId": "1248",
                "path": "salretrunto",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "销售退货入库", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "SalRetrunTodoc",
                  "menuId": "1243",
                  "path": "salRetrunTodoc",
                  "hidden": true,
                  "component": "wms/retrunTo/sal/add",
                  "meta": {"title": "销售退货入库新增", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "SalRetrunToedit",
                  "menuId": "1253",
                  "path": "salRetrunToedit",
                  "hidden": true,
                  "component": "wms/retrunTo/sal/edit",
                  "meta": {"title": "销售退货入库编辑", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "SalRetrunTodetails",
                  "menuId": "1254",
                  "path": "salRetrunTodetails",
                  "hidden": true,
                  "component": "wms/retrunTo/sal/details",
                  "meta": {"title": "销售退货入库详情", "icon": "#", "noCache": false, "link": null}
                }]
              }, {
                "name": "PurretruntoList",
                "menuId": "1250",
                "path": "purretruntoList",
                "hidden": false,
                "component": "wms/retrunTo/pur/index",
                "meta": {"title": "采购退货出库单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "Purretrunto",
                "menuId": "1251",
                "path": "purretrunto",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "采购退货出库", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "PurRetrunTodoc",
                  "menuId": "1252",
                  "path": "purRetrunTodoc",
                  "hidden": true,
                  "component": "wms/retrunTo/pur/add",
                  "meta": {"title": "采购退货出库新增", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "PurRetrunToedit",
                  "menuId": "1255",
                  "path": "purRetrunToedit",
                  "hidden": true,
                  "component": "wms/retrunTo/pur/edit",
                  "meta": {"title": "采购退货出库编辑", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "PurRetrunTodetails",
                  "menuId": "1256",
                  "path": "purRetrunTodetails",
                  "hidden": true,
                  "component": "wms/retrunTo/pur/details",
                  "meta": {"title": "采购退货出库详情", "icon": "#", "noCache": false, "link": null}
                }]
              }, {
                "name": "SalesReturnList",
                "menuId": "1418",
                "path": "SalesReturnList",
                "hidden": false,
                "component": "wms/oldSalesReturn/salesReturnList",
                "meta": {"title": "老系统销售退货单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "SalesReturn",
                "menuId": "1419",
                "path": "salesReturn",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "老系统销售退货", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "SalesReturnAdd",
                  "menuId": "1420",
                  "path": "salesReturnAdd",
                  "hidden": true,
                  "component": "wms/oldSalesReturn/salesReturnAdd",
                  "meta": {"title": "新增老系统销售退货单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "SalesReturnEdit",
                  "menuId": "1421",
                  "path": "salesReturnEdit",
                  "hidden": true,
                  "component": "wms/oldSalesReturn/salesReturnEdit",
                  "meta": {"title": "编辑老系统销售退货", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "SalesReturnView",
                  "menuId": "1422",
                  "path": "salesReturnView",
                  "hidden": true,
                  "component": "wms/oldSalesReturn/salesReturnView",
                  "meta": {"title": "查看老系统销售退货", "icon": "#", "noCache": true, "link": null}
                }]
              }, {
                "name": "PurReturnList",
                "menuId": "1423",
                "path": "purReturnList",
                "hidden": false,
                "component": "wms/oldPurReturn/purReturnList",
                "meta": {"title": "老系统采购退货单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PurReturn",
                "menuId": "1424",
                "path": "purReturn",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "老系统采购退货", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "PurReturnAdd",
                  "menuId": "1425",
                  "path": "purReturnAdd",
                  "hidden": true,
                  "component": "wms/oldPurReturn/purReturnAdd",
                  "meta": {"title": "新增老系统采购退货", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "PurReturnEdit",
                  "menuId": "1426",
                  "path": "purReturnEdit",
                  "hidden": true,
                  "component": "wms/oldPurReturn/purReturnEdit",
                  "meta": {"title": "编辑老系统采购退货", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "PurReturnView",
                  "menuId": "1427",
                  "path": "purReturnView",
                  "hidden": true,
                  "component": "wms/oldPurReturn/purReturnView",
                  "meta": {"title": "查看老系统采购退货", "icon": "#", "noCache": true, "link": null}
                }]
              }]
            }, {
              "name": "Tallying",
              "menuId": "1154",
              "path": "tallying",
              "hidden": false,
              "component": "wms/tallying/tallyingList",
              "meta": {"title": "理货任务单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "PickingList",
              "menuId": "1127",
              "path": "pickingList",
              "hidden": false,
              "component": "sale/picking/pickingList",
              "meta": {"title": "拣货单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "InventoryPricing",
              "menuId": "1230",
              "path": "inventoryPricing",
              "hidden": false,
              "component": "wms/inventoryPricing/index",
              "meta": {"title": "库存定价", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "DeclareCustom",
              "menuId": "1316",
              "path": "declareCustom",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "报关管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "CustomDecRequest",
                "menuId": "1317",
                "path": "customDecRequest",
                "hidden": false,
                "component": "wms/customsDeclaration/list",
                "meta": {"title": "报关需求", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "CustomsDeclaration",
                "menuId": "1233",
                "path": "customsDeclaration",
                "hidden": false,
                "component": "wms/customsDeclaration/index",
                "meta": {"title": "报关单", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "Shifting",
              "menuId": "1200",
              "path": "shifting",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "移库管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "ShiftingList",
                "menuId": "1201",
                "path": "shiftingList",
                "hidden": false,
                "component": "purchase/shifting/shiftingList",
                "meta": {"title": "移库单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "ShiftingAdd",
                "menuId": "1202",
                "path": "shiftingAdd",
                "hidden": true,
                "component": "purchase/shifting/shiftingAdd",
                "meta": {"title": "新增移库单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "ShiftingView",
                "menuId": "1203",
                "path": "shiftingView",
                "hidden": true,
                "component": "purchase/shifting/shiftingView",
                "meta": {"title": "查看移库单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "ShiftingEdit",
                "menuId": "1204",
                "path": "shiftingEdit",
                "hidden": true,
                "component": "purchase/shifting/shiftingEdit",
                "meta": {"title": "编辑移库单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "ShiftingManage",
                "menuId": "1231",
                "path": "shiftingManage",
                "hidden": false,
                "component": "purchase/shiftingManage/shiftingManageList",
                "meta": {"title": "移库入库管理", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "Inventory",
              "menuId": "1192",
              "path": "inventory",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "盘点管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "ProfitList",
                "menuId": "1224",
                "path": "profitList",
                "hidden": false,
                "component": "wms/profit/profitList",
                "meta": {"title": "盘盈单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "ProfitAdd",
                "menuId": "1225",
                "path": "profitAdd",
                "hidden": true,
                "component": "wms/profit/profitAdd",
                "meta": {"title": "新增盘盈单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "LossesList",
                "menuId": "1227",
                "path": "lossesList",
                "hidden": false,
                "component": "wms/losses/lossesList",
                "meta": {"title": "盘亏单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "LossesAdd",
                "menuId": "1228",
                "path": "lossesAdd",
                "hidden": true,
                "component": "wms/losses/lossesAdd",
                "meta": {"title": "新增盈亏单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "InventoryView",
                "menuId": "1195",
                "path": "inventoryView",
                "hidden": true,
                "component": "purchase/inventory/inventoryView",
                "meta": {"title": "盘点单详情", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "ProfitEdit",
                "menuId": "1234",
                "path": "profitEdit",
                "hidden": true,
                "component": "wms/profit/profitEdit",
                "meta": {"title": "编辑盘盈单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "LossesEdit",
                "menuId": "1236",
                "path": "lossesEdit",
                "hidden": true,
                "component": "wms/losses/lossesEdit",
                "meta": {"title": "编辑盘亏单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "InventoryEdit",
                "menuId": "1196",
                "path": "inventoryEdit",
                "hidden": true,
                "component": "purchase/inventory/inventoryEdit",
                "meta": {"title": "编辑盘点单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "ProfitView",
                "menuId": "1235",
                "path": "profitView",
                "hidden": true,
                "component": "wms/profit/profitView",
                "meta": {"title": "查看盘盈单", "icon": "#", "noCache": true, "link": null}
              }, {
                "name": "LossesView",
                "menuId": "1237",
                "path": "lossesView",
                "hidden": true,
                "component": "wms/losses/lossesView",
                "meta": {"title": "查看盘亏单", "icon": "#", "noCache": true, "link": null}
              }, {
                "name": "InventoryList",
                "menuId": "1193",
                "path": "inventoryList",
                "hidden": true,
                "component": "purchase/inventory/inventoryList",
                "meta": {"title": "盘点单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "InventoryAdd",
                "menuId": "1194",
                "path": "inventoryAdd",
                "hidden": true,
                "component": "purchase/inventory/inventoryAdd",
                "meta": {"title": "新增盘点单", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "EnterDepotList",
              "menuId": "1390",
              "path": "enterDepotList",
              "hidden": false,
              "component": "warehouse/enterDepot/enterDepotList",
              "meta": {"title": "其他入库单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "EnterManage",
              "menuId": "1392",
              "path": "enterManage",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "其他入库单管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "EnterDepotAdd",
                "menuId": "1394",
                "path": "enterDepotAdd",
                "hidden": true,
                "component": "warehouse/enterDepot/enterDepotAdd",
                "meta": {"title": "新增其他入库单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "EnterDepotView",
                "menuId": "1396",
                "path": "enterDepotView",
                "hidden": true,
                "component": "warehouse/enterDepot/enterDepotView",
                "meta": {"title": "查看其他入库单", "icon": "#", "noCache": true, "link": null}
              }, {
                "name": "EnterDepotEdit",
                "menuId": "1395",
                "path": "enterDepotEdit",
                "hidden": true,
                "component": "warehouse/enterDepot/enterDepotEdit",
                "meta": {"title": "编辑其他入库单", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "OutDepotList",
              "menuId": "1391",
              "path": "outDepotList",
              "hidden": false,
              "component": "warehouse/outDepot/outDepotList",
              "meta": {"title": "其他出库单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "OutManage",
              "menuId": "1393",
              "path": "outManage",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "其他出库单管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "OutDepotAdd",
                "menuId": "1397",
                "path": "outDepotAdd",
                "hidden": true,
                "component": "warehouse/outDepot/outDepotAdd",
                "meta": {"title": "新增其他出库单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "OutDepotEdit",
                "menuId": "1398",
                "path": "outDepotEdit",
                "hidden": true,
                "component": "warehouse/outDepot/outDepotEdit",
                "meta": {"title": "编辑其他出库单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "OutDepotView",
                "menuId": "1399",
                "path": "outDepotView",
                "hidden": true,
                "component": "warehouse/outDepot/outDepotView",
                "meta": {"title": "查看其他出库单", "icon": "#", "noCache": true, "link": null}
              }]
            }, {
              "name": "Inventoryindex",
              "menuId": "1374",
              "path": "inventoryindex",
              "hidden": false,
              "component": "wms/inventory/index",
              "meta": {"title": "虚拟库存", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "PmOffer",
              "menuId": "1222",
              "path": "pmOffer",
              "hidden": false,
              "component": "wms/pmOffer/pmOffer",
              "meta": {"title": "PM OFFER", "icon": "education", "noCache": false, "link": null}
            }, {
              "name": "CustomsDeclarationAdd",
              "menuId": "1238",
              "path": "customsDeclarationAdd",
              "hidden": true,
              "component": "wms/customsDeclaration/listAdd",
              "meta": {"title": "报关需求新增", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "CustomsDeclarationDetails",
              "menuId": "1264",
              "path": "customsDeclarationDetails",
              "hidden": true,
              "component": "wms/customsDeclaration/details",
              "meta": {"title": "报关需求详情", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "PickingManage",
              "menuId": "1369",
              "path": "pickingManage",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "拣货管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "PickingAdd",
                "menuId": "1128",
                "path": "pickingAdd",
                "hidden": true,
                "component": "sale/picking/pickingAdd",
                "meta": {"title": "拣货单新增", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PickingDetails",
                "menuId": "1129",
                "path": "pickingDetails",
                "hidden": true,
                "component": "sale/picking/pickingDetails",
                "meta": {"title": "拣货单详情", "icon": "#", "noCache": true, "link": null}
              }]
            }, {
              "name": "CustomsDeclarationSoadd",
              "menuId": "1239",
              "path": "customsDeclarationSoadd",
              "hidden": true,
              "component": "wms/customsDeclaration/listSoAdd",
              "meta": {"title": "报关单新增", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "CustomsDeclarationsoDetails",
              "menuId": "1265",
              "path": "customsDeclarationsoDetails",
              "hidden": true,
              "component": "wms/customsDeclaration/sodetails",
              "meta": {"title": "报关单详情", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "TallyingEdit",
              "menuId": "1158",
              "path": "tallyingEdit",
              "hidden": true,
              "component": "wms/tallying/tallyingEdit",
              "meta": {"title": "编辑理货任务单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "TallyingAdd",
              "menuId": "1157",
              "path": "tallyingAdd",
              "hidden": true,
              "component": "wms/tallying/tallyingAdd",
              "meta": {"title": "新增理货任务单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "TallyingView",
              "menuId": "1159",
              "path": "tallyingView",
              "hidden": true,
              "component": "wms/tallying/tallyingView",
              "meta": {"title": "查看理货任务单", "icon": "#", "noCache": false, "link": null}
            }]
          },
          {
            "name": "Financial",
            "menuId": "1267",
            "path": "/financial",
            "hidden": false,
            "redirect": "noRedirect",
            "component": "Layout",
            "alwaysShow": true,
            "meta": {"title": "财务管理", "icon": "money", "noCache": false, "link": null},
            "children": [{
              "name": "ComManage",
              "menuId": "1291",
              "path": "comManage",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "佣金管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "SalepurComManage",
                "menuId": "1292",
                "path": "salepurComManage",
                "hidden": true,
                "component": "financial/financialComManag/payment",
                "meta": {"title": "佣金支付", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "Receivable",
              "menuId": "1294",
              "path": "receivable",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "应收管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "ReceivableList",
                "menuId": "1295",
                "path": "receivableList",
                "hidden": false,
                "component": "financial/receivableManag/receivable/receivableList",
                "meta": {"title": "应收列表", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "ProceedsList",
                "menuId": "1302",
                "path": "proceedsList",
                "hidden": false,
                "component": "financial/receivableManag/proceeds/proceedsList",
                "meta": {"title": "收款单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "AgainstList",
                "menuId": "1307",
                "path": "againstList",
                "hidden": false,
                "component": "financial/receivableManag/against/againstList",
                "meta": {"title": "冲账单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "ReceivableManage",
                "menuId": "1297",
                "path": "receivableManage",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "应收管理", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "ReceivableAdd",
                  "menuId": "1298",
                  "path": "receivableAdd",
                  "hidden": true,
                  "component": "financial/receivableManag/receivable/receivableAdd",
                  "meta": {"title": "查看应收单", "icon": "#", "noCache": true, "link": null}
                }, {
                  "name": "ReceivableView",
                  "menuId": "1321",
                  "path": "receivableView",
                  "hidden": true,
                  "component": "financial/receivableManag/receivable/receivableView",
                  "meta": {"title": "查看预收单", "icon": "#", "noCache": true, "link": null}
                }]
              }, {
                "name": "ProceedsManage",
                "menuId": "1303",
                "path": "proceedsManage",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "收款单管理", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "ProceedsView",
                  "menuId": "1304",
                  "path": "proceedsView",
                  "hidden": true,
                  "component": "financial/receivableManag/proceeds/proceedsView",
                  "meta": {"title": "查看收款单", "icon": "#", "noCache": true, "link": null}
                }, {
                  "name": "ProceedsAdd",
                  "menuId": "1305",
                  "path": "proceedsAdd",
                  "hidden": true,
                  "component": "financial/receivableManag/proceeds/proceedsAdd",
                  "meta": {"title": "新增收款单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "ProceedsEdit",
                  "menuId": "1306",
                  "path": "proceedsEdit",
                  "hidden": true,
                  "component": "financial/receivableManag/proceeds/proceedsEdit",
                  "meta": {"title": "编辑收款单", "icon": "#", "noCache": false, "link": null}
                }]
              }, {
                "name": "AgainstManage",
                "menuId": "1309",
                "path": "againstManage",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "冲账单管理", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "AgainstAdd",
                  "menuId": "1310",
                  "path": "againstAdd",
                  "hidden": true,
                  "component": "financial/receivableManag/against/againstAdd",
                  "meta": {"title": "新增冲账单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "AgainstEdit",
                  "menuId": "1311",
                  "path": "againstEdit",
                  "hidden": true,
                  "component": "financial/receivableManag/against/againstEdit",
                  "meta": {"title": "编辑冲账单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "AgainstView",
                  "menuId": "1312",
                  "path": "againstView",
                  "hidden": true,
                  "component": "financial/receivableManag/against/againstView",
                  "meta": {"title": "查看冲账单", "icon": "#", "noCache": false, "link": null}
                }]
              }]
            }, {
              "name": "Copewith",
              "menuId": "1313",
              "path": "copewith",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "应付管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "CopewithList",
                "menuId": "1314",
                "path": "copewithList",
                "hidden": false,
                "component": "financial/copewithManag/copewith/copewithList",
                "meta": {"title": "应付列表", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "Payment",
                "menuId": "1322",
                "path": "payment",
                "hidden": false,
                "component": "financial/copewithManag/proceeds/proceedsList",
                "meta": {"title": "付款单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "CopewithAgainst",
                "menuId": "1323",
                "path": "copewithAgainst",
                "hidden": false,
                "component": "financial/copewithManag/against/againstList",
                "meta": {"title": "冲账单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "CopewithManage",
                "menuId": "1318",
                "path": "copewithManage",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "应付管理", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "CopewithAdd",
                  "menuId": "1319",
                  "path": "copewithAdd",
                  "hidden": true,
                  "component": "financial/copewithManag/copewith/copewithAdd",
                  "meta": {"title": "查看预付单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "CopewithView",
                  "menuId": "1320",
                  "path": "copewithView",
                  "hidden": false,
                  "component": "financial/copewithManag/copewith/copewithView",
                  "meta": {"title": "查看应付单", "icon": "#", "noCache": false, "link": null}
                }]
              }, {
                "name": "ProceedsManage",
                "menuId": "1325",
                "path": "proceedsManage",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "付款单管理", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "CopewithProceedsView",
                  "menuId": "1326",
                  "path": "copewithProceedsView",
                  "hidden": true,
                  "component": "financial/copewithManag/proceeds/proceedsView",
                  "meta": {"title": "查看付款单", "icon": "#", "noCache": true, "link": null}
                }, {
                  "name": "CopewithProceedsEdit",
                  "menuId": "1327",
                  "path": "copewithProceedsEdit",
                  "hidden": true,
                  "component": "financial/copewithManag/proceeds/proceedsEdit",
                  "meta": {"title": "编辑付款单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "CopewithProceedsAdd",
                  "menuId": "1328",
                  "path": "copewithProceedsAdd",
                  "hidden": true,
                  "component": "financial/copewithManag/proceeds/proceedsAdd",
                  "meta": {"title": "新增付款单", "icon": "#", "noCache": false, "link": null}
                }]
              }, {
                "name": "AgainstManage",
                "menuId": "1324",
                "path": "againstManage",
                "hidden": true,
                "redirect": "noRedirect",
                "component": "ParentView",
                "alwaysShow": true,
                "meta": {"title": "冲账单管理", "icon": "#", "noCache": false, "link": null},
                "children": [{
                  "name": "CopewithAgainstAdd",
                  "menuId": "1329",
                  "path": "copewithAgainstAdd",
                  "hidden": true,
                  "component": "financial/copewithManag/against/againstAdd",
                  "meta": {"title": "新增冲账单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "CopewithAgainstEdit",
                  "menuId": "1330",
                  "path": "copewithAgainstEdit",
                  "hidden": true,
                  "component": "financial/copewithManag/against/againstEdit",
                  "meta": {"title": "编辑冲账单", "icon": "#", "noCache": false, "link": null}
                }, {
                  "name": "CopewithAgainstView",
                  "menuId": "1331",
                  "path": "copewithAgainstView",
                  "hidden": true,
                  "component": "financial/copewithManag/against/againstView",
                  "meta": {"title": "查看冲账单", "icon": "#", "noCache": true, "link": null}
                }]
              }]
            }, {
              "name": "FinancialReport",
              "menuId": "1413",
              "path": "financialReport",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "报表管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "ReceivableReportList",
                "menuId": "1414",
                "path": "receivableReportList",
                "hidden": false,
                "component": "financial/report/receivableReport",
                "meta": {"title": "应收报表", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "CopeWithReportList",
                "menuId": "1415",
                "path": "copeWithReportList",
                "hidden": false,
                "component": "financial/report/copeWithReport",
                "meta": {"title": "应付报表", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "CostManange",
              "menuId": "1315",
              "path": "costManange",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "费用管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "SaleFinancialComManag",
                "menuId": "1289",
                "path": "saleFinancialComManag",
                "hidden": false,
                "component": "financial/financialComManag/list",
                "meta": {"title": "财务佣金管理", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "FinOtherExpenses",
                "menuId": "1381",
                "path": "finOtherExpenses",
                "hidden": false,
                "component": "financial/otherExpenses/finOtherExpenses",
                "meta": {"title": "其他费用汇总", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "AuditList",
              "menuId": "1332",
              "path": "auditList",
              "hidden": false,
              "component": "financial/audit/auditList",
              "meta": {"title": "查账申请单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "AuditManage",
              "menuId": "1334",
              "path": "auditManage",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "查账申请单管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "AuditAdd",
                "menuId": "1335",
                "path": "auditAdd",
                "hidden": true,
                "component": "financial/audit/auditAdd",
                "meta": {"title": "新增查账申请单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "AuditEdit",
                "menuId": "1350",
                "path": "auditEdit",
                "hidden": true,
                "component": "financial/audit/auditEdit",
                "meta": {"title": "编辑查账申请单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "AuditView",
                "menuId": "1351",
                "path": "auditView",
                "hidden": true,
                "component": "financial/audit/auditView",
                "meta": {"title": "查看查账申请单", "icon": "#", "noCache": true, "link": null}
              }, {
                "name": "FinancialPurAuditAdd",
                "menuId": "1401",
                "path": "financialPurAuditAdd",
                "hidden": true,
                "component": "financial/audit/purAuditAdd",
                "meta": {"title": "新增采购查账申请单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "FinancialPurAuditEdit",
                "menuId": "1402",
                "path": "financialPurAuditEdit",
                "hidden": true,
                "component": "financial/audit/purAuditEdit",
                "meta": {"title": "编辑采购查账申请单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "FinancialPurAuditView",
                "menuId": "1403",
                "path": "financialPurAuditView",
                "hidden": true,
                "component": "financial/audit/purAuditView",
                "meta": {"title": "查看采购查账申请单", "icon": "#", "noCache": true, "link": null}
              }]
            }, {
              "name": "PaymentApplyList",
              "menuId": "1333",
              "path": "paymentApplyList",
              "hidden": false,
              "component": "financial/paymentApply/paymentApplyList",
              "meta": {"title": "付款申请单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "PaymentManage",
              "menuId": "1354",
              "path": "paymentManage",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "付款申请单管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "PaymentApplyAdd",
                "menuId": "1355",
                "path": "paymentApplyAdd",
                "hidden": true,
                "component": "financial/paymentApply/paymentApplyAdd",
                "meta": {"title": "新增付款申请单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PaymentApplyEdit",
                "menuId": "1356",
                "path": "paymentApplyEdit",
                "hidden": true,
                "component": "financial/paymentApply/paymentApplyEdit",
                "meta": {"title": "编辑付款申请单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PaymentApplyView",
                "menuId": "1357",
                "path": "paymentApplyView",
                "hidden": true,
                "component": "financial/paymentApply/paymentApplyView",
                "meta": {"title": "查看付款申请单", "icon": "#", "noCache": true, "link": null}
              }]
            }, {
              "name": "RefundList",
              "menuId": "1362",
              "path": "refundList",
              "hidden": false,
              "component": "financial/refund/refundList",
              "meta": {"title": "退款申请单", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "RefundManage",
              "menuId": "1363",
              "path": "refundManage",
              "hidden": true,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "退款申请单管理", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "RefundAdd",
                "menuId": "1364",
                "path": "refundAdd",
                "hidden": true,
                "component": "financial/refund/refundAdd",
                "meta": {"title": "新增退款申请单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "RefundEdit",
                "menuId": "1365",
                "path": "refundEdit",
                "hidden": true,
                "component": "financial/refund/refundEdit",
                "meta": {"title": "编辑退款申请单", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "RefundView",
                "menuId": "1366",
                "path": "refundView",
                "hidden": true,
                "component": "financial/refund/refundView",
                "meta": {"title": "查看退款申请单", "icon": "#", "noCache": false, "link": null}
              }]
            }]
          },
          {
            "name": "System",
            "menuId": "1",
            "path": "/system",
            "hidden": false,
            "redirect": "noRedirect",
            "component": "Layout",
            "alwaysShow": true,
            "meta": {"title": "系统管理", "icon": "icon_sys", "noCache": false, "link": null},
            "children": [{
              "name": "PersonnelRoster",
              "menuId": "1339",
              "path": "personnelRoster",
              "hidden": false,
              "component": "system/user/roster",
              "meta": {"title": "人事花名册", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "User",
              "menuId": "100",
              "path": "user",
              "hidden": false,
              "component": "system/user/index",
              "meta": {"title": "用户管理", "icon": "user", "noCache": false, "link": null}
            }, {
              "name": "Role",
              "menuId": "101",
              "path": "role",
              "hidden": false,
              "component": "system/role/index",
              "meta": {"title": "角色管理", "icon": "peoples", "noCache": false, "link": null}
            }, {
              "name": "Menu",
              "menuId": "102",
              "path": "menu",
              "hidden": false,
              "component": "system/menu/index",
              "meta": {"title": "菜单管理", "icon": "tree-table", "noCache": false, "link": null}
            }, {
              "name": "Dept",
              "menuId": "103",
              "path": "dept",
              "hidden": false,
              "component": "system/dept/index",
              "meta": {"title": "部门管理", "icon": "tree", "noCache": false, "link": null}
            }, {
              "name": "Post",
              "menuId": "104",
              "path": "post",
              "hidden": false,
              "component": "system/post/index",
              "meta": {"title": "岗位管理", "icon": "post", "noCache": false, "link": null}
            }, {
              "name": "Dict",
              "menuId": "105",
              "path": "dict",
              "hidden": false,
              "component": "system/dict/index",
              "meta": {"title": "字典管理", "icon": "dict", "noCache": false, "link": null}
            }, {
              "name": "Config",
              "menuId": "106",
              "path": "config",
              "hidden": false,
              "component": "system/config/index",
              "meta": {"title": "参数设置", "icon": "edit", "noCache": false, "link": null}
            }, {
              "name": "Notice",
              "menuId": "107",
              "path": "notice",
              "hidden": false,
              "component": "system/notice/index",
              "meta": {"title": "通知公告", "icon": "message", "noCache": false, "link": null}
            }, {
              "name": "Log",
              "menuId": "108",
              "path": "log",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "日志管理", "icon": "log", "noCache": false, "link": null},
              "children": [{
                "name": "Operlog",
                "menuId": "500",
                "path": "operlog",
                "hidden": false,
                "component": "monitor/operlog/index",
                "meta": {"title": "操作日志", "icon": "form", "noCache": false, "link": null}
              }, {
                "name": "Logininfor",
                "menuId": "501",
                "path": "logininfor",
                "hidden": false,
                "component": "monitor/logininfor/index",
                "meta": {"title": "登录日志", "icon": "logininfor", "noCache": false, "link": null}
              }]
            }, {
              "name": "UserAdd",
              "menuId": "1119",
              "path": "userAdd",
              "hidden": true,
              "component": "system/user/userAdd",
              "meta": {"title": "人员新增", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "UserDetails",
              "menuId": "1120",
              "path": "userDetails",
              "hidden": true,
              "component": "system/user/userDetails",
              "meta": {"title": "人员详情", "icon": "#", "noCache": true, "link": null}
            }, {
              "name": "FieldAdd",
              "menuId": "1384",
              "path": "fieldAdd",
              "hidden": true,
              "component": "system/role/addField",
              "meta": {"title": "字段权限", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "RoleData",
              "menuId": "1152",
              "path": "roleData",
              "hidden": true,
              "component": "system/role/roleData",
              "meta": {"title": "数据权限", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "RosterAdd",
              "menuId": "1340",
              "path": "rosterAdd",
              "hidden": true,
              "component": "system/user/rosterAdd",
              "meta": {"title": "花名册新增", "icon": "#", "noCache": false, "link": null}
            }, {
              "name": "RosterDetails",
              "menuId": "1341",
              "path": "rosterDetails",
              "hidden": true,
              "component": "system/user/rosterDetails",
              "meta": {"title": "花名册详情", "icon": "#", "noCache": false, "link": null}
            }]
          },
          {
            "name": "Report",
            "menuId": "1185",
            "path": "/report",
            "hidden": false,
            "redirect": "noRedirect",
            "component": "Layout",
            "alwaysShow": true,
            "meta": {"title": "业务报表", "icon": "chart", "noCache": false, "link": null},
            "children": [{
              "name": "SaleReport",
              "menuId": "1416",
              "path": "saleReport",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "销售报表", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "SaleGPreport",
                "menuId": "1417",
                "path": "saleGPreport",
                "hidden": false,
                "component": "sale/saleReport/gp",
                "meta": {"title": "销售GP报表", "icon": "#", "noCache": false, "link": null}
              }]
            }, {
              "name": "PurchaseReport",
              "menuId": "1186",
              "path": "purchaseReport",
              "hidden": false,
              "redirect": "noRedirect",
              "component": "ParentView",
              "alwaysShow": true,
              "meta": {"title": "采购报表", "icon": "#", "noCache": false, "link": null},
              "children": [{
                "name": "PurchaseQuotationSheet",
                "menuId": "1187",
                "path": "purchaseQuotationSheet",
                "hidden": false,
                "component": "purchase/purchaseQuotationSheet/index",
                "meta": {"title": "采购报价表", "icon": "#", "noCache": false, "link": null}
              }, {
                "name": "PurGPreport",
                "menuId": "1412",
                "path": "purGPreport",
                "hidden": false,
                "component": "purchase/purchaseQuotationSheet/gp",
                "meta": {"title": "采购GP报表", "icon": "#", "noCache": false, "link": null}
              }]
            }]
          },
          {
            "name": "Monitor",
            "menuId": "2",
            "path": "/monitor",
            "hidden": false,
            "redirect": "noRedirect",
            "component": "Layout",
            "alwaysShow": true,
            "meta": {"title": "系统监控", "icon": "monitor", "noCache": false, "link": null},
            "children": [{
              "name": "Online",
              "menuId": "109",
              "path": "online",
              "hidden": false,
              "component": "monitor/online/index",
              "meta": {"title": "在线用户", "icon": "online", "noCache": false, "link": null}
            }, {
              "name": "Job",
              "menuId": "110",
              "path": "job",
              "hidden": false,
              "component": "monitor/job/index",
              "meta": {"title": "定时任务", "icon": "job", "noCache": false, "link": null}
            }, {
              "name": "Druid",
              "menuId": "111",
              "path": "druid",
              "hidden": false,
              "component": "monitor/druid/index",
              "meta": {"title": "数据监控", "icon": "druid", "noCache": false, "link": null}
            }, {
              "name": "Server",
              "menuId": "112",
              "path": "server",
              "hidden": false,
              "component": "monitor/server/index",
              "meta": {"title": "服务监控", "icon": "server", "noCache": false, "link": null}
            }, {
              "name": "Cache",
              "menuId": "113",
              "path": "cache",
              "hidden": false,
              "component": "monitor/cache/index",
              "meta": {"title": "缓存监控", "icon": "redis", "noCache": false, "link": null}
            }]
          },
          {
            "name": "Tool",
            "menuId": "3",
            "path": "/tool",
            "hidden": false,
            "redirect": "noRedirect",
            "component": "Layout",
            "alwaysShow": true,
            "meta": {"title": "系统工具", "icon": "tool", "noCache": false, "link": null},
            "children": [{
              "name": "Build",
              "menuId": "114",
              "path": "build",
              "hidden": false,
              "component": "tool/build/index",
              "meta": {"title": "表单构建", "icon": "build", "noCache": false, "link": null}
            }, {
              "name": "Gen",
              "menuId": "115",
              "path": "gen",
              "hidden": false,
              "component": "tool/gen/index",
              "meta": {"title": "代码生成", "icon": "code", "noCache": false, "link": null}
            }, {
              "name": "Swagger",
              "menuId": "116",
              "path": "swagger",
              "hidden": false,
              "component": "tool/swagger/index",
              "meta": {"title": "系统接口", "icon": "swagger", "noCache": false, "link": null}
            }]
          }*/
        ]
        // getRouters().then(res => {
        console.log("getRouters", getRouters)
        const rdata = JSON.parse(JSON.stringify(getRouters))
        context.commit("SET_SIDEBAR_ROUTERS", rdata)
        // const rewriteRoutes = filterAsyncRouter(rdata, false, true)
        resolve(rdata)
        /*     }).catch((err) => {
               reject(err)
             })*/
      })
    },

  },
  getters: {},
}


